Skip to content

Add strict mode to pyright#315

Merged
dsp-ant merged 12 commits into
mainfrom
add-strict-mode-pyright
Mar 20, 2025
Merged

Add strict mode to pyright#315
dsp-ant merged 12 commits into
mainfrom
add-strict-mode-pyright

Conversation

@Kludex

@Kludex Kludex commented Mar 19, 2025

Copy link
Copy Markdown
Member

There are conceptually wrong types in mcp/types.py that I can't solve easily.

@dsp-ant
dsp-ant force-pushed the add-strict-mode-pyright branch from 30149e3 to 96377b0 Compare March 19, 2025 09:42
@Kludex

Kludex commented Mar 19, 2025

Copy link
Copy Markdown
Member Author

I have a fix locally, I need to push it.

@Kludex
Kludex requested a review from dsp-ant March 20, 2025 08:10
Comment thread README.md
<!-- omit in toc -->
## Table of Contents

- [Overview](#overview)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My IDE "fixes" this... It has been like this for years and I never bothered to fix it... If it's not important, I'd appreciate it if we just ignore this.

@dsp-ant dsp-ant left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

"""
new_data = data.copy() # Shallow copy
for field_name, field_info in self.arg_model.model_fields.items():
for field_name, _field_info in self.arg_model.model_fields.items():

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds like we can make this

Suggested change
for field_name, _field_info in self.arg_model.model_fields.items():
for field_name in self.arg_model.model_fields.keys():

@dsp-ant
dsp-ant merged commit ae77772 into main Mar 20, 2025
@dsp-ant
dsp-ant deleted the add-strict-mode-pyright branch March 20, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants